
package com.zsrt.day20170419.ch01;


import org.junit.Test;

public class CalTest {
	
	
	@Test
	public void addTest() throws Exception {
		
		
		Cal cal = new Cal();
		
		Daibugongju daibugongju = new Saozhou();
		//Daibugongju daibugongju = new Carriage();
		//Daibugongju daibugongju = new Car();
		daibugongju.setX(20);
		daibugongju.setY(40);
		
		int add = cal.add(daibugongju );
		daibugongju.daibu();
		System.out.println(add);
		
		
	}

}
